package com.yunhe.portal.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yunhe.common.annotation.NameTitle;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName: DataBannerInfoVo
 * @Description:
 * @author: GongDaCheng
 * @Date: 11:44 2021/10/22
 */
@Data
@ApiModel("banner列表出参对象")
public class DataBannerInfoVo implements Serializable {

    private static final long serialVersionUID = -1183315596300066160L;

    @ApiModelProperty("banner id")
    private Long id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("图片")
    private String image;

    @ApiModelProperty("发布人")
    private Long  publishPerson;

    @ApiModelProperty("发布人名称")
    @NameTitle(nameCode = "publishPerson",nameType = "USER")
    private String  publishPersonName;

    @ApiModelProperty("发布时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date publishTime;
}
